package com.zx.config.constant;

import java.math.BigDecimal;
import java.util.regex.Pattern;

public class MallConstant {
    /**
     * token
     */
    public static final String TOKEN_KEY = "YUM-AUTH-TOKEN";

    /**
     * ????key
     */
    public static String DES_CIPHER = "kfybimcj";

    /**
     * ?????
     */
    public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

    public static final String DATE="yyyy-MM-dd";

    /**
     * redis????
     */
    public static final String REDIS_KEY_SEPARATOR_SYMBOL = ":";

    /**
     * ??????????????
     * 5???
     */
    public static final Integer SQUARE_CIRCLE = 8045;


    /**
     * ????????
     */
    public static final String RESOURCE_DIR = "resources";

    public static final Pattern URL_REG_PATTERN = Pattern.compile("^http[s]?:\\/\\/([\\w-]+\\.)+[\\w-]+([\\w-./?%&=()]*)?$");

    /**
     * ???
     */
    public static final BigDecimal TAX_RATE=new BigDecimal("0.15");

    /**
     * ?????????
     */
    public static final BigDecimal CANCEL_TAX_RATE=new BigDecimal("0.05");

    /**
     * ??????
     */
    public static final String LOGIN_AUTO="auto";
}
